package com.yeren.ams.provider.provider;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * liubiao
 */
public class Provider {

	private static ClassPathXmlApplicationContext context;

	public static void main(String[] args) {
		try {
			context = new ClassPathXmlApplicationContext("spring-context.xml");
			context.start();
		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("== DubboProvider context start error!!!!");
		}
		synchronized (Provider.class) {
			while (true) {
				try {
					Provider.class.wait();
				} catch (InterruptedException e) {
					System.out.println("== synchronized error!!!!!");
				}

			}
		}
	}

}
